package com.dbkj.common.utils;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;

/**
 * @Author: Max
 * @Date: 2019/11/4 10:09
 */

public class UploadDataListener extends AnalysisEventListener {
    @Override
    public void invoke(Object o, AnalysisContext analysisContext) {
        System.out.println(JSON.toJSONString(o));
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("所有数据解析完成");
    }
}
